<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditUsrTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditUsrLabel_idUsr}" for="idUsr" />
                    <h:inputText id="idUsr" value="#{usrController.selected.idUsr}" title="#{bundle.EditUsrTitle_idUsr}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_idUsr}"/>
                    <h:outputLabel value="#{bundle.EditUsrLabel_nomUsr}" for="nomUsr" />
                    <h:inputText id="nomUsr" value="#{usrController.selected.nomUsr}" title="#{bundle.EditUsrTitle_nomUsr}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_nomUsr}"/>
                    <h:outputLabel value="#{bundle.EditUsrLabel_apeUsr}" for="apeUsr" />
                    <h:inputText id="apeUsr" value="#{usrController.selected.apeUsr}" title="#{bundle.EditUsrTitle_apeUsr}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_apeUsr}"/>
                    <h:outputLabel value="#{bundle.EditUsrLabel_nuUsr}" for="nuUsr" />
                    <h:inputText id="nuUsr" value="#{usrController.selected.nuUsr}" title="#{bundle.EditUsrTitle_nuUsr}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_nuUsr}"/>
                    <h:outputLabel value="#{bundle.EditUsrLabel_fnacUsr}" for="fnacUsr" />
                    <h:inputText id="fnacUsr" value="#{usrController.selected.fnacUsr}" title="#{bundle.EditUsrTitle_fnacUsr}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_fnacUsr}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditUsrLabel_emailUsr}" for="emailUsr" />
                    <h:inputText id="emailUsr" value="#{usrController.selected.emailUsr}" title="#{bundle.EditUsrTitle_emailUsr}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_emailUsr}"/>
                    <h:outputLabel value="#{bundle.EditUsrLabel_idIdlb}" for="idIdlb" />
                    <h:inputText id="idIdlb" value="#{usrController.selected.idIdlb}" title="#{bundle.EditUsrTitle_idIdlb}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_idIdlb}"/>
                    <h:outputLabel value="#{bundle.EditUsrLabel_pssUsr}" for="pssUsr" />
                    <h:inputText id="pssUsr" value="#{usrController.selected.pssUsr}" title="#{bundle.EditUsrTitle_pssUsr}" required="true" requiredMessage="#{bundle.EditUsrRequiredMessage_pssUsr}"/>
                </h:panelGrid>
                <h:commandLink action="#{usrController.update}" value="#{bundle.EditUsrSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditUsrViewLink}"/>
                <br />
                <h:commandLink action="#{usrController.prepareList}" value="#{bundle.EditUsrShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditUsrIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
